//
//  ScoreReportPageViewController.h
//  ActiveDeck
//
//  Created by Michael Cohen on 9/8/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "PageViewController.h"
#import "scoreReportQuestion.h"

@interface ScoreReportPageViewController : PageViewController <UITableViewDelegate, UITableViewDataSource>{
    IBOutlet UIImageView *BG_Image;
    IBOutlet UILabel *scoreLabel;
    NSArray *allPages;
    NSMutableArray *questionRows;
    IBOutlet UITableView *scoreTableView;
}

@property (nonatomic, retain) IBOutlet UIImageView *BG_Image;
@property (nonatomic, retain) IBOutlet UILabel *scoreLabel;
@property (nonatomic, retain) NSArray *allPages;
@property (nonatomic, retain) NSMutableArray *questionRows;
@property (nonatomic, retain) IBOutlet UITableView *scoreTableView;

-(void)loadReport;
-(void)setLabelSize:(UILabel*)label withMaxHeight:(int)maxHeight;
-(void)setLabelSize:(UILabel *)label withMaxHeight:(int)maxHeight andYPos:(int)yPos;
-(void)expandAllCells;
-(void)expandCell:(scoreReportQuestion*)q correctAnswerLabelSize:(CGSize)caSize yourAnswerLabelSize:(CGSize)yaSize questionLabelSize:(CGSize)qSize;
-(void)truncateLabel:(UILabel*)label;
@end
